{extends file="main.tpl"}
{block name=head}
  <script>
    function callAjax()
    {
      var branchId = $('#branchId').val();
      var branchName = $('#branchId option:selected').text();
      	$.ajax({
	        url:'setSession.php',
	        data:'branchId='+branchId+ '&branchName=' +branchName,
	        dataType:'HTML',
	        type:'POST',
	        success:function(msg)
	        {
	        }
        });
    }
  </script>
{/block}
{block name=body}
  <table>
    <tr>
  	  <td align="center" class="table2">FROM
        <select name="unloadfrom" id="branchId" onchange="callAjax()" autofocus/>
        	<option value="" >Select Branch</option>
          {html_options values=$branchArray.branchId output=$branchArray.branchName}
        </select>
      </td>
    </tr>
  </table>
{/block}